/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.ban.data.exchange.runner.tokenBucket.server;

import cn.ac.iie.di.commons.httpserver.framework.handler.HandlerI;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;

/**
 *
 * @author zwlin
 */
public class HelloHandler implements HandlerI {

	@Override
	public void init() throws Exception {}
	@Override
	public void execute(Request pRequest, HttpServletRequest request, HttpServletResponse response) throws Exception {
		String key = request.getParameter("key");//获得参数
		response.getWriter().write("hello!..............");//返回
		response.setStatus(HttpServletResponse.SC_OK);//设置处理成功
                System.out.println("key:"+key);
	}

}
